<html>
    <head>
    <style>
        body {
            font-family: Verdana, Helvetica, sans-serif;
            background-color: #DDDDDD;
        }
    </style>
    </head>
    <body>
        {% for note in notes %}
			{% ifequal note.state 0 %}
		        I made this decision at {{note.date|timezone:8|date:"Y-m-d H:i:s"}}
				{% ifequal editable "true" %}
					<a href="/tasks/finish?key={{note.key.id}}">delete</a>
				{% endifequal %}
		        <blockquote>
		            {{ note.content|escape }}
		        </blockquote>
			{% endifequal %}
        {% endfor %}
        {% ifequal editable "true" %}
	        <form action="/tasks" method="post">
	            <div>
	                <input name="content" type="text"></input>
	            </div>
	            <div>
	                <input type="submit" value="Add a task">
	            </div>
	        </form>
		{% endifequal %}
    </body>
</html>
